﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectGamer.DataModels
{
    public class Rental
    {
        public int Id { get; set; }
        public string ApplicationUserId { get; set; }
        public int GameId { get; set; }
        public float SoldPrice { get; set; }
        public float RentedPrice { get; set; }
        public bool WasTraded { get; set; }
        public bool WasReturned { get; set; }

        public virtual ApplicationUser ApplicationUser { get; set; }
        public virtual Game Game { get; set; }

        public Rental()
        {

        }
        public Rental(string userId, int gameId, float soldPrice, float rentedPrice, bool wasTraded, bool wasReturned)
        {
            ApplicationUserId = userId;
            GameId = gameId;
            SoldPrice = soldPrice;
            RentedPrice = rentedPrice;
            WasTraded = wasTraded;
            WasReturned = wasReturned;

        }

    }
}
